package dome3Set;

import java.util.HashSet;
import java.util.Set;

public class SetDome2 {
    public static void main(String[] args) {
        SetDome2Student s1=new SetDome2Student("驻马店",18,"张三");
        SetDome2Student s2=new SetDome2Student("西峡",19,"李四");
        SetDome2Student s3=new SetDome2Student("西峡",19,"李四");
        SetDome2Student s4=new SetDome2Student("南阳",19,"王五");
        Set<SetDome2Student> set=new HashSet<>();
        set.add(s1);
        set.add(s2);
        set.add(s3);
        set.add(s4);
        System.out.println(set);

    }
}
